
public class Ship implements Comparable{

	private int capacity;
	private int crew;
	private int NumSavingBoats;
	private String captain;
	private String name;
	
	public Ship(){
		name = "";
		captain = "";
	}

	@Override
	public int compareTo(Object anotherShip) {
		if(anotherShip != null && anotherShip instanceof Ship){		
			return this.capacity - ((Ship)anotherShip).capacity;
		}
		return 1;
	}
	
	
	
}
